package com.ipartek.desarrollo.acciones;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ipartek.desarrollo.bean.MatriculasElearning;
import com.ipartek.desarrollo.dao.MatriculasElearningDAO;

public class MostrarMatriculas extends Accion {

	@Override
	public String ejecutar(HttpServletRequest request,
			HttpServletResponse response) {

		// Codigo con Hibernate
		MatriculasElearningDAO matriculasElearningDAO = new MatriculasElearningDAO();
		List<MatriculasElearning> matriculasElearning = matriculasElearningDAO
				.ListarMatriculas();

		request.setAttribute("matriculasElearning", matriculasElearning);
		return "mostrarMatriculasElearning.jsp";
	}
}
